<template>
  <el-input v-model="search" placeholder="请输入关键字" style="width: 20%" clearable></el-input>
  <el-button type="primary" style="margin-left: 5px" @click="getlist">查询</el-button>
  <el-input v-model="size"  style="width: 20%" clearable></el-input>
</template>


<script>
import { ElInput } from 'element-plus';
import goods from "@/api/goods"
export default {
  name: '403',
  components: { ElInput,},
  data() {
    return {
      search: '',
      imageUrl: '',
      size: 0,
    };
  },
  methods: {
    getlist(){
      goods.testList(this.search).then(res=>{
        console.log(res.data,"res.data")
        this.size = res.data;
      })
    }
  }
}
</script>

<style scoped>
.avatar-uploader .avatar {
  width: 178px;
  height: 178px;
  display: block;
}
</style>

<style>
.avatar-uploader .el-upload {
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--el-transition-duration-fast);
}

.avatar-uploader .el-upload:hover {
  border-color: var(--el-color-primary);
}

.el-icon.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  text-align: center;
}
</style>
